projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df79af6
)
ioemu: ne2k buffer full bug fix, by Marcel Block.
author
Keir Fraser
<keir.fraser@citrix.com>
Fri, 28 Mar 2008 11:17:11 +0000
(11:17 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Fri, 28 Mar 2008 11:17:11 +0000
(11:17 +0000)
Backport from qemu upstream.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/ioemu/hw/ne2000.c
patch
|
blob
|
history
diff --git
a/tools/ioemu/hw/ne2000.c
b/tools/ioemu/hw/ne2000.c
index 89126a875f3f4bdbcc2e8abd1200d5826a187b8b..977d2029219404489da85bc52cd31f5c01ed1134 100644
(file)
--- a/
tools/ioemu/hw/ne2000.c
+++ b/
tools/ioemu/hw/ne2000.c
@@
-207,7
+207,7
@@
static int ne2000_buffer_full(NE2000State *s)
index = s->curpag << 8;
boundary = s->boundary << 8;
- if (index <
=
boundary)
+ if (index < boundary)
avail = boundary - index;
else
avail = (s->stop - s->start) - (index - boundary);